#!/usr/bin/python2.5
"""
    Googbus - Engine with DBUS interface for accessing Google APIs
    
    Copyright (C) 2008  Matti Raty

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/.
"""

"""
Googbus DBUS service and object definitions.
-------------------------------------------------------------------------------
"""
GOOGBUS_DBUS_SERVICE            = "org.googbus.googleservices"

GOOGBUS_DBUS_CALENDAR_OBJECT    = "/org/googbus/googleservices/calendar"

GOOGBUS_DBUS_TEST_OBJECT        = "/org/googbus/googleservices/test"


"""
Googbus interfaces and methods.
-------------------------------------------------------------------------------

Currently supported interfaces
    - Test interface
    - Google calendar
    
"""
GOOGBUS_DBUS_CALENDAR_INTERFACE = "org.googbus.google_calendar"
GOOGBUS_DBUS_TEST_INTERFACE     = "org.googbus.google_test"


"""
Googbus return codes
-------------------------------------------------------------------------------
"""
GOOGBUS_RET_OK                  = 0

GOOGBUS_RET_NO_ACCOUNT          = -1    #No account in configuration file

GOOGBUS_RET_LOGIN_FAILED        = -20   #Login to Google account failed




